package site.teamo.biu.net.common.http_https_proxy.constant;

import cn.hutool.core.util.StrUtil;
import site.teamo.biu.net.common.util.Function2;

/**
 * @author haocongshun
 * @date 2023/03/01 17:17:39
 */
public enum MethodEnum {
    END_WITH("以...结尾", StrUtil::endWithIgnoreCase),
    START_WITH("以...开头", StrUtil::startWithIgnoreCase),
    CONTAINS("包含", StrUtil::containsIgnoreCase),
    EQUALS("以...结尾", StrUtil::equalsIgnoreCase);

    public final String name;

    public final Function2<String, String, Boolean> invoke;

    MethodEnum(String name, Function2<String, String, Boolean> invoke) {
        this.name = name;
        this.invoke = invoke;
    }
}
